Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DefaultFetchSpec should not buffer results in temporary list buffers #31282

Closed
wants to merge 1 commit into from
Closed

DefaultFetchSpec should not buffer results in temporary list buffers #31282

wants to merge 1 commit into from

Conversation

sephiroth-j
Copy link
Contributor

Avoid fetching and buffering results in temporary List buffers.

I stumbled across this while analyzing a problem with oracle-r2dbc and thought that using buffer() is unnecessary when you could use singleOrEmpty instead.

Avoid fetching and buffering results in temporary `List` buffers.

Signed-off-by: Ronny Perinke <[email protected]>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Sep 20, 2023
@sephiroth-j sephiroth-j changed the title use singleOrEmpty() instead of buffer() R2DBC: use singleOrEmpty() instead of buffer(2) for FetchSpec.one() Sep 22, 2023
@snicoll snicoll self-assigned this Sep 26, 2023
@snicoll snicoll added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Sep 26, 2023
@snicoll snicoll added this to the 6.1.0-RC1 milestone Sep 26, 2023
@snicoll snicoll changed the title R2DBC: use singleOrEmpty() instead of buffer(2) for FetchSpec.one() DefaultFetchSpec should not buffer results in temporary list buffers Sep 26, 2023
snicoll pushed a commit that referenced this pull request Sep 26, 2023
This commit avoids fetching and buffering results in temporary `List` buffers.

See gh-31282
snicoll added a commit that referenced this pull request Sep 26, 2023
@snicoll snicoll closed this in af0b39a Sep 26, 2023
@sephiroth-j sephiroth-j deleted the feature/flux-singleOrEmpty-in-DefaultFetchSpec branch September 26, 2023 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants